package com.travelgroup.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.travelgroup.domain.dto.RouteDTO;
import com.travelgroup.domain.entity.TourRoute;
import com.travelgroup.exception.R;

import java.util.List;

public interface ITourRouterService extends IService<TourRoute> {
    R<Long> createTourRouter(RouteDTO routeDTO);

    R<RouteDTO> queryTourRouteById(Long id);

    R<RouteDTO> updateTourRoute(Long id, RouteDTO routeDTO);

    R<?> deleteTourRoute(Long id);

    R<List<TourRoute>> queryTourRoutesByUserId(Long userId, Integer current);
}
